#  $Id: exception.py ddcad87fab9c 2013/08/17 19:20:30 pgurumur $
#  Copyright (c) 2009 Prabhu Gurumurthy  <pgurumur@gmail.com>
#  
#  Permission to use, copy, modify, and distribute this software for any
#  purpose with or without fee is hereby granted, provided that the above
#  copyright notice and this permission notice appear in all copies.
# 
#  THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
#  WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
#  MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
#  ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
#  WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
#  ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
#  OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
#
# $Author: pgurumur $
# $Revision: ddcad87fab9c $
#

class BaseExp(Exception):
   def __init__(self, exception = None):
      super(BaseExp, self).__init__()
      self._except = exception

   def __str__(self):
      return str(self._except).encode('utf-8')

class IPError(Exception):
   pass

class GetOptError(Exception):
   pass

class SQLError(Exception):
   pass

class SocketError(Exception):
   pass

class LexerError(Exception):
   pass

class LexerAssert(Exception):
   pass

class NodeError(Exception):
   pass

class CompileError(Exception):
   pass

class InternalError(Exception):
   pass
